import axios, { Axios } from "axios";
const context = "/ucenter";

/**
 * 获取 Cleaningruleconfig 分页列表
 */
export function getCleaningruleconfigPagination(data: any) {
  return axios.get(`${context}/cleaningruleconfig/pagination`, {
    params: data
  });
}

/**
 * 获取 Cleaningruleconfig 所有数据
 */
export function getCleaningruleconfigAllList(data: any) {
  return axios.get(`${context}/cleaningruleconfig/all`, { params: data });
}

/**
 * 获取 Cleaningruleconfig 详情
 */
export function getCleaningruleconfigDetailById(id: any) {
  return axios.get(`${context}/cleaningruleconfig/${id}`, { params: { id } });
}

/**
 * 新增 Cleaningruleconfig
 */
export function addCleaningruleconfig(data: any) {
  return axios.post(`${context}/cleaningruleconfig`, data);
}

/**
 * 修改 Cleaningruleconfig
 */
export function updateCleaningruleconfig(data: any) {
  return axios.put(`${context}/cleaningruleconfig`, data);
}

/**
 * 删除 Cleaningruleconfig
 */
export function batchRemoveCleaningruleconfig(data: any) {
  return axios.post(`${context}/cleaningruleconfig/batchRemove`, data);
}
